﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeBehind="monitor_list.aspx.cs" Inherits="HYSoft.Web.monitor_list1" %>

<%@ Register Src="~/Controls/menu.ascx" TagName="Menus" TagPrefix="uc3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script language="JavaScript" type="text/javascript" src="JS/Public.js"></script>
    <style type="text/css">
        .main
        {
            width: 1140px;
            height: 900px;
            margin-left: auto;
            margin-right: auto;
            background-color: White;
        }
    
     
        .w_3
        {
            margin-top: 20px;
        }
        .w_3 td
        {
            height: 35px;
            vertical-align: top;
        }
      
        .part1
        {
            font-size: 10px;
            width: 900px;
            height:430px;
            margin-left: auto;
            margin-right: auto;
        }
        .w_1
        {
            border-left: 1px solid #d1d1d1;
            border-right: 1px solid #d1d1d1;
            border-top: 1px solid #d1d1d1;
            height: 34px;
            line-height: 50px;
            background: url(../Images/biaotilan.png) no-repeat;
            font-family: "微软雅黑";
            font-size: 14px;
            padding-left: 22px;
            color: #fff;
            letter-spacing: 1px;
        }
        .w_2
        {
            border-left: 1px solid #d1d1d1;
            border-right: 1px solid #d1d1d1;
            font-size: 12px;
            line-height: 34px;
        }
        .w_4
        {
            width: 95px;
            height: 22px;
            margin: auto;
            background: url(../images/2.jpg) no-repeat;
            font-weight: bold;
            color: #ffff00;
            text-align: center;
            line-height: 22px;
        }
        .part_2_8
        {
            padding-top: 25px;
            padding-bottom: 25px;
            width:80%;
            margin-left:auto;
            margin-right:auto;
        }
        .part_2_8 table
        {
            border-left: 1px solid #bbb;
            border-top: 1px solid #bbb;
        }
        .part_2_8 td
        {
            height: 25px;
            border-right: 1px solid #bbb;
            border-bottom: 1px solid #bbb;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentPlaceHolderMenu" runat="server">
    <uc3:Menus ID="menus" runat="server" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="contentPlaceHolderMain" runat="server">
    <div class="main">
        <%--top标记--%>
        <div>
            <img src="Images/top.PNG" />
        </div>
        <%-- 内容显示--%>
        <div>
            <div class="part1">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td class="w_1">
                            当前监测点基本状态
                        </td>
                    </tr>
                    <tr>
                        <td class="w_2">
                            <asp:ListView ID="ListView2" runat="server">
                            <ItemTemplate>
                                    <table width="98%" border="0" align="right" cellpadding="1" cellspacing="0" class="w_3">
                                        <tr>
                                            <td width="3%">
                                                <img src="images/p_3.jpg" width="12" height="12" />
                                            </td>
                                            <td width="45%">
                                                具体地点：<%#Eval("addr") %></td>
                                            <td width="340" height="280" rowspan="8" align="left" valign="top" style="background: url(images/1.jpg) no-repeat;
                                                padding-top: 0px; padding-left: 8px;">
                                                现场图像：
                                                <img src="<%#data_photo(Eval("charvalue1")) %>" width="320" height="240" />
                                            </td>
                                            <td></td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <img src="Images/p_3.jpg" width="12" height="12" />
                                            </td>
                                            <td>
                                                所属区(县)：<%#Eval("m_area_name")%></td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <img src="images/p_3.jpg" width="12" height="12" />
                                            </td>
                                            <td>
                                                现场联系人1：<%#Eval("Contact_name1")%></td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <img src="images/p_3.jpg" width="12" height="12" />
                                            </td>
                                            <td>
                                                联系人1电话：<%#Eval("Contact_mobile1")%></td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <img style="margin-top: 10px;" src="images/p_3.jpg" width="12" height="12" />
                                            </td>
                                            <td rowspan="2">
                                                传感器节点分类数量：<br />
                                                <%#data_Statusid(Eval("index").ToString())%>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                &nbsp;
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <img src="images/p_3.jpg" width="12" height="12" />
                                            </td>
                                            <td>
                                                当前监测点状态：
                                                <%#data_Status(Eval("index").ToString())%>
                                            </td>
                                        </tr>
                                        <%if (Session["Usertype"] == "单位用户") %>
                                        <%{ %>
                                        <tr>
                                            <td colspan="4">
                                                <div class="w_4" style=" margin-top:40px;">
                                                    <a href="edmonitor.aspx?id=<%#Eval("index") %>" style="color: #ffff00;">编辑监测点</a>
                                                </div>
                                            </td>
                                        </tr>
                                        <%} %>
                                        <tr><td colspan="4"></td></tr>
                                    </table>
                                </ItemTemplate>
                            </asp:ListView>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <img src="Images/p_2.jpg" width="100%" height="16" />
                        </td>
                    </tr>
                </table>
            </div>
            <div class="part_2_8">
                <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr style="background: url(images/ws3.jpg) repeat-x; line-height: 28px; font-weight: bold;
                        font-size: 12px;">
                        <td>
                            传感器手机卡号
                        </td>
                        <td>
                            传感器MAC值
                        </td>
                        <td>
                            传感器位置
                        </td>
                        <td>
                            传感器状态
                        </td>
                        <td>
                            电池状态
                        </td>
                        <td>
                            温度
                        </td>
                        <td>
                            传感器类型
                        </td>
                        <td>
                            最新状态时间
                        </td>
                        <td>
                            供电模式
                        </td>
                    </tr>
                    <asp:ListView ID="ListView1" runat="server">
                     <ItemTemplate>
                            <tr onmouseover="overColor(this)" onmouseout="outColor(this)" style="font: 10px;">
                                <td>
                                    &nbsp;<%#Eval("Simno") %></td>
                                <td>
                                    &nbsp;<%#Eval("Mac") %></td>
                                <td>
                                    &nbsp;<%#Eval("[addr]") %></td>
                                <td>
                                    &nbsp;<%#data_chuanganqi(Eval("chuanganqi").ToString())%></td>
                                <td>
                                    &nbsp;<%#data_color(Eval("dianchi").ToString())%></td>
                                <td>
                                    &nbsp;<%#data_chuanganqi(Eval("wendu").ToString())%></td>
                                <td>
                                    &nbsp;<%#data_type(Eval("adminno").ToString(), Eval("index").ToString(),Eval("mac").ToString()) %></td>
                                <td>
                                    &nbsp;<%#Eval("charvalue2") %></td>
                                <td>
                                    &nbsp;<%#Eval("gongdian") %></td>
                            </tr>
                        </ItemTemplate>
                    </asp:ListView>
                       <tr><td colspan="9" style="width:579px;font-size:9pt;text-align:right; height:30px;">
             <asp:Label ID="Label4" runat="server" Text="当前页码为"></asp:Label>[
            <asp:Label ID="labPage" runat="server" Text="1"></asp:Label>&nbsp;]
            <asp:Label ID="Label5" runat="server" Text="总页码为"></asp:Label>[
             <asp:Label ID="labBackPage" runat="server" ></asp:Label>&nbsp;]
             &nbsp;<asp:LinkButton ID="lnkbtnOne" runat="server" Font-Underline="False" ForeColor="Red"
                OnClick="lnkbtnOne_Click">第一页</asp:LinkButton>
             &nbsp;<asp:LinkButton ID="lnkbtnUp" runat="server" Font-Underline="False" ForeColor="Red"
                 OnClick="lnkbtnUp_Click">上一页</asp:LinkButton>
             &nbsp;<asp:LinkButton ID="lnkbtnNext" runat="server" Font-Underline="False" ForeColor="Red"
                 OnClick="lnkbtnNext_Click">下一页</asp:LinkButton>&nbsp;<asp:LinkButton ID="lnkbtnBack" runat="server" Font-Underline="False" ForeColor="Red"
                 OnClick="lnkbtnBack_Click">最后一页</asp:LinkButton>&nbsp;&nbsp;

        </td></tr>
                </table>
            </div>
        </div>
    </div>
</asp:Content>
